<?
if(isset($_GET['datatype']) && $_GET['datatype'] == 'array')
{   echo '[
    ["these","arr_1",{"style":"color:red"}],
    ["fuckin","arr_2",{"style":"color:orange"}],
    ["options","arr_3",{"style":"color:yellow"}],
    ["been","arr_4",{"style":"color:green"}],
    ["loaded","arr_5",{"style":"color:lightblue"}],
    ["by","arr_6",{"style":"color:blue"}],
    ["array","arr_7",{"style":"color:violet"}]
    ]';
}

else
{   header('Content-Type:application/xml');
    $xml = <<<XML
    <fwc:options xmlns:fwc='http://alx.vingrad.ru/fwc'>
      <fwc:option value="xml_1" style="color:violet">these</fwc:option>
      <fwc:option value="xml_2" style="color:blue">fuckin</fwc:option>
      <fwc:option value="xml_3" style="color:lightblue">options</fwc:option>
      <fwc:option value="xml_4" style="color:green">been</fwc:option>
      <fwc:option value="xml_5" style="color:yellow">loaded</fwc:option>
      <fwc:option value="xml_6" style="color:orange">by</fwc:option>
      <fwc:option value="xml_7" style="color:red">xml</fwc:option>
  </fwc:options>
XML;
echo $xml;
}
?>
